SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 62242: For some ORDER= and format combinations, PROC SURVEYMEANS generates an error or incorrect domain quantile standard errors using replication methods

DetailsAboutRate It

In 9.4 TS1M1 (SAS/STAT 13.1) or 9.4 TS1M2 (SAS/STAT 13.2), when all of the following conditions are met in PROC SURVEYMEANS:


  • The PERCENTILE= , DECILES, MEDIAN, Q1, Q3, or QUARTILES option is specified
  • VARMETHOD=BRR or VARMETHOD=JK
  • A DOMAIN statement is specified
  • The option ORDER=DATA is specified
  • The input data set order and the internal order of the domain values are different

Then the domain percentile standard errors and confidence limits are incorrect.

To circumvent the problem, specify ORDER=INTERNAL.

 

If in addition to the first three qualifications above, a domain variable is formatted, PROC SURVEYMEANS issues:

ERROR: You may have found a bug in PROC SURVEYMEANS. Please save your program and report these to your SAS representative. Error in matching domain levels.

To circumvent the problem, omit the format and specify ORDER=INTERNAL.

 

In 9.4 TS1M3 (SAS/STAT 14.1), 9.4 TS1M4 (SAS/STAT 14.2), or 9.4 TS1M5 (SAS/STAT 14.3), under the following conditions in PROC SURVEYMEANS:


  • The PERCENTILE= , DECILES, MEDIAN, Q1, Q3, or QUARTILES option is specified
  • VARMETHOD=BOOSTRAP*, VARMETHOD=BRR, or VARMETHOD=JK *The bootstrap variance estimation method is new in SAS/STAT 14.2.
  • A DOMAIN statement is specified

And in addition:


  • No domain variables are formatted, ORDER=DATA is specified, and
  • The input data set order and the internal order of the domain values are different

Or


  • A domain variable is formatted, ORDER=INTERNAL, or ORDER=DATA is specified, and
  • Either of these orderings of the domain values is different from that of the formatted order of the domain values

Then the domain percentile standard errors and confidence limits are incorrect.

If no domain variables are formatted, you can circumvent the problem by specifying ORDER=INTERNAL. If a domain variable is formatted, you can circumvent the problem by specifying ORDER=FORMATTED.

In all cases where incorrect standard errors are generated, both the printed Domain Quantiles table and the ODS Output data set DomainQuantiles are affected.

Also note that the default replication variance estimates for quantiles is improved beginning SAS 9.4 TS1M3 (SAS/STAT 14.1). You can specify the BRR or JK method-option NAIVEQVAR to reproduce the results from earlier release. See Usage Note 62247 for details.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/STATz/OS13.115.19.4 TS1M19.4 TS1M6
Microsoft® Windows® for x6413.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8 Enterprise 32-bit13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8 Enterprise x6413.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8 Pro 32-bit13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8 Pro x6413.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8.1 Enterprise x6413.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 8.1 Pro x6413.115.19.4 TS1M19.4 TS1M6
Microsoft Windows 1013.115.19.4 TS1M19.4 TS1M6
Microsoft Windows Server 200813.19.4 TS1M1
Microsoft Windows Server 2008 R213.19.4 TS1M1
Microsoft Windows Server 2008 for x6413.19.4 TS1M1
Microsoft Windows Server 2012 Datacenter13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows Server 2012 R2 Std13.115.19.4 TS1M19.4 TS1M6
Microsoft Windows Server 2012 Std13.115.19.4 TS1M19.4 TS1M6
Windows 7 Enterprise 32 bit13.115.19.4 TS1M19.4 TS1M6
Windows 7 Enterprise x6413.115.19.4 TS1M19.4 TS1M6
Windows 7 Home Premium 32 bit13.115.19.4 TS1M19.4 TS1M6
Windows 7 Home Premium x6413.115.19.4 TS1M19.4 TS1M6
Windows 7 Professional 32 bit13.115.19.4 TS1M19.4 TS1M6
Windows 7 Professional x6413.115.19.4 TS1M19.4 TS1M6
Windows 7 Ultimate 32 bit13.115.19.4 TS1M19.4 TS1M6
Windows 7 Ultimate x6413.115.19.4 TS1M19.4 TS1M6
64-bit Enabled AIX13.115.19.4 TS1M19.4 TS1M6
64-bit Enabled Solaris13.115.19.4 TS1M19.4 TS1M6
HP-UX IPF13.115.19.4 TS1M19.4 TS1M6
Linux for x6413.115.19.4 TS1M19.4 TS1M6
Solaris for x6413.115.19.4 TS1M19.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.